home *** CD-ROM | disk | FTP | other *** search
- ;
- ; F I X R G . A S M
- ;
- ; Alters RENEGADE.OVR file to force password and telephone number
- ; clearance at user login. Read the docs for more info.
- ;
- ; By Tokyo
- ;
-
- code segment
- assume cs:code, ds:code
- org 100h
- start: jmp main
-
- path1 db '\bbs\renegade.ovr',0
- path2 db '\renegade\renegade.ovr',0
- path3 db '\rene\renegade.ovr',0
- fixcode db 90h, 90h
- filehandle dw ?
-
- main: mov ax,3d02h ; attempt open
- mov dx,offset path1 ; start with path1
- int 21h
- jnc clear ; cleared?
- ; if so, jump
- mov ax,3d02h ; and repeat again
- mov dx,offset path2 ; this time, path2
- int 21h
- jnc clear
- mov ax,3d02h ; and again
- mov dx,offset path3 ; with path3
- int 21h
- jc exit ; if that failed, exit
- clear: mov filehandle,ax ; save file handle
- mov ax,4200h ; position file pointer
- mov bx,filehandle
- xor cx,cx
- mov dx,0957h
- int 21h
- mov ah,40h ; write first fix
- mov cx,2
- mov dx,offset fixcode
- int 21h
- mov ax,4200h ; position to 2nd point
- xor cx,cx
- mov dx,097fh
- int 21h
- mov ah,40h ; write 2nd fix
- mov cx,2
- mov dx,offset fixcode
- int 21h
- mov ah,3eh ; close and save changes
- int 21h
- exit: mov ax,4c00h ; exit
- int 21h
- code ends
- end start
-